
use serde::{Serialize,Deserialize};

#[derive(Serialize,Deserialize,Debug)]
pub struct Choose{
    pub(crate) id : String,
    pub(crate) category_id : String,
}

#[derive(Serialize,Deserialize,Debug,PartialEq)]
pub struct Money{
    pub(crate) value : i32,
    pub count : i32
}

#[derive(Serialize,Deserialize,Debug)]
pub struct Order{
    pub(crate) id : String,
    pub(crate) goods_id : String ,
    pub(crate) goods_name : String,
    pub(crate) sell_count : i32,
    pub(crate) status : i32,
    pub(crate) money : i32,
    pub(crate) time : String,
    pub(crate) phone : String,
    pub(crate) address : String,
}

#[derive(Serialize,Deserialize,Debug)]
pub struct Category{
    pub(crate) sort : String,
    pub(crate) id : String ,
    pub(crate) name : String
}

#[derive(Serialize,Deserialize,Debug)]
pub struct Goods{
    pub id :String,
    pub category_id :String,
    pub type_name : String,
    pub color : String ,
    pub name : String ,
    pub price : i32,
    pub count : i32,
    pub transport : i32 ,
    pub money : i32
}

#[derive(Serialize,Deserialize,Debug)]
pub struct ResultVO{
    pub category_id : String,
    pub category_name : String,
    pub goods_id : String,
    pub type_name : String,
    pub color : String,
    pub goods_name : String,
    pub price : i32,
    pub count : i32,
    pub sell_count : i32 ,
    pub transport : i32,
    pub money : i32
}

#[derive(Serialize,Deserialize,Debug)]
pub struct Repo {
    pub(crate) id : String,
    pub(crate) count : i32
}

#[derive(Serialize,Deserialize,Debug)]
pub struct GoodVO {
    pub(crate) id : String,
    pub(crate) category_id : String,
    pub(crate) type_name : String,
    pub(crate) color : String,
    pub(crate) name : String,
    pub(crate) price : i32,
    pub(crate) count : i32,
    pub(crate) sell_count:i32 ,
}

#[derive(Serialize,Deserialize,Debug)]
pub struct OrderVO {
    pub goods_id : String,
    pub sell_count : i32 ,
    pub money : i32,
    pub count : i32,
    pub price : i32 ,
    pub transport : i32,
}